package com.example.demo.controller;

import com.example.demo.module.entity.PatientFlow;
import com.example.demo.service.PatientFlowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/data/pat")
public class PatientFlowController {
    @Autowired
    PatientFlowService patientFlowService;
    @GetMapping("/find")
    public List<PatientFlow> selectAll() throws Exception{
        List<PatientFlow> list=patientFlowService.findAll();
        return list;
    }
}
